﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;

using System.Linq;
using System.Linq.Expressions;
using System.Text;
using ProjectBase.Core;

namespace $safeprojectname$
{
    public static partial class Ext
    {
        /// <summary>new StringLengthRule</summary>
        public static string Localize<TItem>(this IEnumerable<string> propertyNames)
        {
            var sb = new StringBuilder();
            var comma = string.Empty;
            foreach (var uniqueProperty in propertyNames)
            {
                sb.Append(comma);
                sb.Append(uniqueProperty.GetLocalized(typeof(TItem).Name));
                comma = ", ";
            }
            return sb.ToString();
        }
        
    }
}